/*
 * $Id: AbstractRequestListUser.java,v 1.4 2009/07/24 18:27:42 oliver Exp $
 *
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 *
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 *
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */

/*
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 *
 * Created Wed Dec 31 15:32:24 CST 2008 by MyEclipse Hibernate Tool.
 */
package com.ge.healthcare.autosc.common.database.pojo;

import java.io.Serializable;

/**
 * A class that represents a row in the ACT_REQUEST_LIST_USER table. 
 * You can customize the behavior of this class by editing the class, {@link ActRequestListUser()}.
 * WARNING: DO NOT EDIT THIS FILE. This is a generated file that is synchronized
 * by MyEclipse Hibernate tool integration.
 */
public abstract class AbstractRequestListUser 
    implements Serializable
{
    /**
	 * Eclipse generated
	 */
	private static final long serialVersionUID = 3519114273052700767L;

	/** The cached hash code value for this instance.  Settting to 0 triggers re-calculation. */
    private int hashValue = 0;

    /** The composite primary key value. */
    private java.lang.Long requestUserId;

    /** The value of the actRequestList association. */
    private Long requestListId;

    /** The value of the cfgCodeDetails association. */
    private java.lang.Long codeId;

    /** The value of the simple sso property. */
    private java.lang.Integer sso;

    /** The value of the simple sentFrom property. */
    private java.lang.String emailAddress;

    /** The value of the simple replyTo property. */
    private java.lang.String addressType;

    /** The value of the simple program property. */
    private java.lang.String program;

    /**
     * Simple constructor of AbstractRequestListUser instances.
     */
    public AbstractRequestListUser()
    {
    }

    /**
     * Constructor of AbstractRequestListUser instances given a simple primary key.
     * @param requestUserId
     */
    public AbstractRequestListUser(java.lang.Long requestUserId)
    {
        this.setRequestUserId(requestUserId);
    }

    /**
     * Return the simple primary key value that identifies this object.
     * @return java.lang.Long
     */
    public java.lang.Long getRequestUserId()
    {
        return requestUserId;
    }

    /**
     * Set the simple primary key value that identifies this object.
     * @param requestUserId
     */
    public void setRequestUserId(java.lang.Long requestUserId)
    {
        this.hashValue = 0;
        this.requestUserId = requestUserId;
    }

    public Long getRequestListId()
    {
        return this.requestListId;
    }

    /**
     * Set the value of the REQUEST_LIST_ID column.
     * @param actRequestList
     */
    public void setRequestListId(Long requestListId)
    {
        this.requestListId = requestListId;
    }

    /**
     * Return the value of the SSO column.
     * @return java.lang.Integer
     */
    public java.lang.Integer getSso()
    {
        return this.sso;
    }

    /**
     * Set the value of the SSO column.
     * @param sso
     */
    public void setSso(java.lang.Integer sso)
    {
        this.sso = sso;
    }

    /**
     * Return the value of the PROGRAM column.
     * @return java.lang.String
     */
    public java.lang.String getProgram()
    {
        return this.program;
    }

    /**
     * Set the value of the PROGRAM column.
     * @param program
     */
    public void setProgram(java.lang.String program)
    {
        this.program = program;
    }

    /**
     * Return the value of the CODE_ID column.
     * @return CfgCodeDetails
     */
    public Long getCodeId()
    {
        return this.codeId;
    }

    /**
     * Set the value of the CODE_ID column.
     * @param cfgCodeDetails
     */
    public void setCodeId(Long codeId)
    {
        this.codeId = codeId;
    }

    /**
     * Implementation of the equals comparison on the basis of equality of the primary key values.
     * @param rhs
     * @return boolean
     */
    public boolean equals(Object rhs)
    {
        if (rhs == null)
            return false;
        if (! (rhs instanceof ActRequestListUser))
            return false;
        ActRequestListUser that = (ActRequestListUser) rhs;
        if (this.getRequestUserId() == null || that.getRequestUserId() == null)
            return false;
        return (this.getRequestUserId().equals(that.getRequestUserId()));
    }

    /**
     * Implementation of the hashCode method conforming to the Bloch pattern with
     * the exception of array properties (these are very unlikely primary key types).
     * @return int
     */
    public int hashCode()
    {
        if (this.hashValue == 0)
        {
            int result = 17;
            int requestUserIdValue = this.getRequestUserId() == null ? 0 : this.getRequestUserId().hashCode();
            result = result * 37 + requestUserIdValue;
            this.hashValue = result;
        }
        return this.hashValue;
    }

	/**
	 * @return the emailAddress
	 */
	public java.lang.String getEmailAddress() {
		return emailAddress;
	}

	/**
	 * @param emailAddress the emailAddress to set
	 */
	public void setEmailAddress(java.lang.String emailAddress) {
		this.emailAddress = emailAddress;
	}

	/**
	 * @return the addressType
	 */
	public java.lang.String getAddressType() {
		return addressType;
	}

	/**
	 * @param addressType the addressType to set
	 */
	public void setAddressType(java.lang.String addressType) {
		this.addressType = addressType;
	}
	
	
	public String getSsoInString() {
		String ssoStr = null;
		Integer sso = this.sso;
		if (sso != null) {
			ssoStr = sso.toString();
		}
		return ssoStr;
	}

}
